/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.aliyuncs.sas.model.v20181203;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.sas.Endpoint;

/**
 * @author auto create
 * @version 
 */
public class DescribeOnceTaskRequest extends RpcAcsRequest<DescribeOnceTaskResponse> {
	   

	private String rootTaskId;

	private Long endTimeQuery;

	private Integer pageSize;

	private String taskId;

	private String taskType;

	private Long startTimeQuery;

	private Integer currentPage;
	public DescribeOnceTaskRequest() {
		super("Sas", "2018-12-03", "DescribeOnceTask");
		setMethod(MethodType.POST);
		try {
			com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
			com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
		} catch (Exception e) {}
	}

	public String getRootTaskId() {
		return this.rootTaskId;
	}

	public void setRootTaskId(String rootTaskId) {
		this.rootTaskId = rootTaskId;
		if(rootTaskId != null){
			putQueryParameter("RootTaskId", rootTaskId);
		}
	}

	public Long getEndTimeQuery() {
		return this.endTimeQuery;
	}

	public void setEndTimeQuery(Long endTimeQuery) {
		this.endTimeQuery = endTimeQuery;
		if(endTimeQuery != null){
			putQueryParameter("EndTimeQuery", endTimeQuery.toString());
		}
	}

	public Integer getPageSize() {
		return this.pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
		if(pageSize != null){
			putQueryParameter("PageSize", pageSize.toString());
		}
	}

	public String getTaskId() {
		return this.taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
		if(taskId != null){
			putQueryParameter("TaskId", taskId);
		}
	}

	public String getTaskType() {
		return this.taskType;
	}

	public void setTaskType(String taskType) {
		this.taskType = taskType;
		if(taskType != null){
			putQueryParameter("TaskType", taskType);
		}
	}

	public Long getStartTimeQuery() {
		return this.startTimeQuery;
	}

	public void setStartTimeQuery(Long startTimeQuery) {
		this.startTimeQuery = startTimeQuery;
		if(startTimeQuery != null){
			putQueryParameter("StartTimeQuery", startTimeQuery.toString());
		}
	}

	public Integer getCurrentPage() {
		return this.currentPage;
	}

	public void setCurrentPage(Integer currentPage) {
		this.currentPage = currentPage;
		if(currentPage != null){
			putQueryParameter("CurrentPage", currentPage.toString());
		}
	}

	@Override
	public Class<DescribeOnceTaskResponse> getResponseClass() {
		return DescribeOnceTaskResponse.class;
	}

}
